package bean;

import protoClass.AppProtocolbuf;

public class SSTAppHungupRes {
	private String userid;
	private String callid;
	private String dstUserId = "";
	private int res;

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public String getCallid() {
		return callid;
	}

	public void setCallid(String callid) {
		this.callid = callid;
	}

	public int getRes() {
		return res;
	}

	public void setRes(int res) {
		this.res = res;
	}

	public String getDstUserId() {
		return dstUserId;
	}

	public void setDstUserId(String dstUserId) {
		this.dstUserId = dstUserId;
	}

	public byte[] getBytes() {
		AppProtocolbuf.STAppHungupRes.Builder builder = AppProtocolbuf.STAppHungupRes
				.newBuilder();
		builder.setCallId(getCallid());
		builder.setUserId(getUserid());
		builder.setRes(getRes());
		builder.setDstUserId(getDstUserId());
		return builder.build().toByteArray();

	}

}
